package com.hctg.forced2sleep.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.hctg.forced2sleep.adapter.AppMonitorGridAdapter;
import com.hctg.forced2sleep.databinding.ActivityMonitorSettingBinding;

/**
 * description: 首页 -> 监督
 * company    :
 * @author    : ldf
 * date       : 2024/6/13 on 21:21
 */
public class MonitorSettingActivity extends BaseActivity<ActivityMonitorSettingBinding> {

    private AppMonitorGridAdapter mAdapter = new AppMonitorGridAdapter();

    public static void start(Context context) {
        context.startActivity(new Intent(context, MonitorSettingActivity.class));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        viewBinding.ivBack.setOnClickListener(v -> { finish(); });
        //页面监督
        viewBinding.itemPageMonitor.setOnClickListener(v -> {
            PageScanActivity.start(mActivity);
        });

        //
        viewBinding.recyclerView.setAdapter(mAdapter);
    }
}